    package com.example.housingRentalSystem.service;

    import com.example.housingRentalSystem.bean.House;
    import com.example.housingRentalSystem.utils.ApiResponse;
    import com.example.housingRentalSystem.utils.PageRequest;
    import com.example.housingRentalSystem.utils.PageResponse;
    import org.springframework.web.multipart.MultipartFile;

    import java.util.List;
    import java.util.Map;

    /**
     * @author 王硕
     * @version jdk21
     * @className HouseService
     * @description 房屋服务接口
     * @date 2025/3/21 17:48
     */
    public interface HouseService {

        PageResponse<House> selectHouse(String city, String rentType, Integer minRent, Integer maxRent,
                                        String sortBy, String order, Integer status, Integer ownerId,
                                        Integer id, String title,PageRequest pageRequest);

        ApiResponse<String> addHouse(House house, List<MultipartFile> images);

        ApiResponse<String> updateHouse(Integer userId, House house, List<MultipartFile> images);

        void updateHouseStatus(Integer houseId, Integer status);

        int selectHouseCount();
        List<Map<String, Object>> getNewHousesCountByDayThisWeek();

        ApiResponse<String> addHouseAndImage(House house, List<MultipartFile> images);

        List<House> selectHouseByOwnerId(Integer ownerId);
        List<House> selectHouseByStatus(Integer status);
    }
